var exec = require('cordova/exec');
//测试用例
exports.coolMethod = function (arg0, success, error) {
    exec(success, error, 'huanxin', 'coolMethod', [arg0]);
};
//登录
exports.loginMethod = function (arg0, success, error) {
    exec(success, error, 'huanxin', 'loginMethod', [arg0]);
};
//  SDK连接服务器的状态变化时会接收到该回调
exports.connectionStateDidChangeMethod = function (arg0, success, error) {
    exec(success, error, 'huanxin', 'connectionStateDidChangeMethod', [arg0]);
};
//退出
exports.logoutMethod = function (arg0, success, error) {
    exec(success, error, 'huanxin', 'logoutMethod', [arg0]);
};
//当前登录账号在其它设备登录时会接收到该回调
exports.userAccountDidLoginFromOtherDeviceMethod = function (arg0, success, error) {
    exec(success, error, 'huanxin', 'userAccountDidLoginFromOtherDeviceMethod', [arg0]);
};
//当前登录账号已经被从服务器端删除时会收到该回调
exports.userAccountDidRemoveFromServerMethod = function (arg0, success, error) {
    exec(success, error, 'huanxin', 'userAccountDidRemoveFromServerMethod', [arg0]);
};
//发起实时通话
exports.startCallMethod = function (arg0, success, error) {
    exec(success, error, 'huanxin', 'startCallMethod', [arg0]);
};
//被叫方同意实时通话
exports.answerIncomingCallMethod = function (arg0, success, error) {
    exec(success, error, 'huanxin', 'answerIncomingCallMethod', [arg0]);
};
//结束实时通话
exports.endCallMethod = function (arg0, success, error) {
    exec(success, error, 'huanxin', 'endCallMethod', [arg0]);
};